﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpDemo.Entity
{
    [Table("Task")]
    public class Task : Entity<int>
    {
        /// <summary>
        /// 表id
        /// </summary>
        [Key]
        public override int Id { get; set; }
        /// <summary>
        /// 符号
        /// </summary>
        [Required]
        [StringLength(128)]
        public string Code { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        [Required]
        [StringLength(128)]
        public string Name { get; set; }
        /// <summary>
        /// 任务对应标识颜色  用来渲染表格背景色
        /// </summary>
        [Required]
        [StringLength(128)]
        public string Background_Color { get; set; }
        public Task()
        {
        }
    }
}
